﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WanPiJie
{
	/// <summary>
	/// Baby
	/// </summary>
	public interface IBabyService
	{
		/// <summary>
		/// 添加Baby。
		/// </summary>m
		/// <param name="userId">用户编号。</param>
		/// <param name="name">宝宝名字。</param>
		/// <param name="birthday">宝宝生日。</param>
		Baby AddBaby(int userId, string name, DateTime birthday, string gender);

		/// <summary>
		/// 获取Baby。
		/// </summary>
		/// <param name="id">宝宝编号。</param>
		/// <returns></returns>
		Baby GetBaby(int id);

		/// <summary>
		/// 获取Baby。
		/// </summary>
		/// <param name="userId">用户名。</param>
		/// <returns></returns>
		List<Baby> GetBabies(int userId);

		/// <summary>
		/// 修改宝宝姓名。
		/// </summary>
		/// <param name="id">宝宝编号。</param>
		/// <param name="name">宝宝姓名。</param>
		void UpdateName(int id, string name);

		/// <summary>
		/// 修改宝宝头像。
		/// </summary>
		/// <param name="id">宝宝编号。</param>
		/// <param name="avatar">宝宝头像。</param>
		void UpdateAvatar(int id, string avatar);
	}
}
